package pl.com.margielewski.servicetimetracker;

import pl.com.margielewski.mmacontrols.MMDatePickerDialog;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

public class AddNewService extends Activity implements OnClickListener {

	TextView dateValue;

	public void onClick(View view) {
		if (view.getId() == R.id.tvDateValue
				|| view.getId() == R.id.tvLiteralDateValue) {
			MMDatePickerDialog dialog = new MMDatePickerDialog(this,
					(TextView) findViewById(R.id.tvDateValue));
			dialog.show();
		}
	}

	@Override
	public void onCreate(Bundle savedInstanceState) {

		super.onCreate(savedInstanceState);
		setContentView(R.layout.add_new_service);
		this.dateValue = (TextView) findViewById(R.id.tvDateValue);
		this.dateValue.setOnClickListener(this);
	}
}
